package com.wex.cookbook.constant.RoleEnum;

/**
 * 角色枚举类
 * @author : wex
 * @createTime : 2023/10/17 11:11
 */
public enum RoleEnum {
    /**
     * 管理员
     */
    ADMIN(0,"ADMIN"),
    /**
     * 普通用户
     */
    USER(1,"USER");

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    private final int code;
    private final String msg;

    RoleEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


}
